package Decorator_Pattern.Phone;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Jar extends Part{
    public Jar(Phone phone){
        super(phone);
    }

    @Override
    public void display() {
        super.display();
        this.setJar();
    }
    public void setJar(){
        System.out.println("添加振动");
    }
}
